/**
 * 功能:TK_PURCHASE_PAY Dao类
 * 开发人员:chengd
 * 创建时间:2012-05-12 17:43:27
 */
package com.towker.frame.dao.purchase;

import org.springframework.stereotype.Repository;
import com.towker.core.db.BaseDao;
import com.towker.frame.model.purchase.PurchasePay;

@Repository
@SuppressWarnings("unchecked")
public class PurchasePayDao extends BaseDao<PurchasePay, Long>
{
	@Override
	public Class getEntityClass()
	{
		return PurchasePay.class;
	}
	
	/**
	 * 获取最后一个采购付款申请单号
	 * @return
	 */
	public String getLastPaySn(){
		return (String)getSqlSessionTemplate().selectOne(getIbatisMapperNamespace()+".getLastPaySn", null);
	}
}